// i.d(t, { t: () => PrefetchedData })
export default class PrefetchedData {
  static get model() {
    const { model } = window.MP_PREFETCHED_MODELDATA || {}
    return model && model.sid ? model : null
  }
  static get hasPassword() {
    const { model } = window.MP_PREFETCHED_MODELDATA || {}
    return model && model.has_public_access_password ? model.has_public_access_password : null
  }
  static getQuery(e) {
    const { queries } = window.MP_PREFETCHED_MODELDATA || {}
    return queries && queries[e] ? queries[e] : null
  }
  static get config() {
    const { config } = window.MP_PREFETCHED_MODELDATA || {}
    return config
  }
}
